package com.qfedu.zf.app.controller;

import com.qfedu.zf.app.service.SmsFeign;
import com.qfedu.zf.common.vo.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * --- 天道酬勤 ---
 *
 * @author FanShuhu
 * @date 2024/6/6
 * @desc -- 代码敲烂 月薪过万--
 */

@Api("验证码接口")
@RestController
@RequestMapping("/api/sms")
public class SmsController {

    @Autowired
    private SmsFeign smsFeign;

    @ApiOperation("发送注册验证码")
    @RequestMapping("/sendrcode")
    public R sendrcode(String phone){
        return smsFeign.sendrcode(phone);
    }

    @ApiOperation("发送登录验证码")
    @RequestMapping("/sendlcode")
    public R sendlcode(String phone){
        return smsFeign.sendlcode(phone);
    }
}
